package com.study4j.oss.fastdfs.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.context.annotation.Import;
import org.springframework.jmx.support.RegistrationPolicy;

import com.github.tobato.fastdfs.FdfsClientConfig;

/**   
 * @description fastdfs文件存储配置
 * @author Jiangbin  
 * @date 2019年7月26日 下午3:06:07 
 */
@Configuration
@ConditionalOnProperty(prefix="oss",name = "type", havingValue = "fastdfs")
@Import(FdfsClientConfig.class)//注解，就可以拥有带有连接池的FastDFS Java客户端了
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)// 解决jmx重复注册bean的问题
public class FastdfsClientConfig {

}
